package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 肖守凯
 * @since 2021-06-22
 */
@TableName("repair")
@ApiModel(value="Repair对象", description="")
public class Repair extends Model<Repair> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("repair_id")
    private String repairId;

    @ApiModelProperty(value = "对应的结构id")
    @TableField("structure_id")
    private String structureId;

    @ApiModelProperty(value = "修理原因及目的")
    @TableField("subjects")
    private String subjects;

    @ApiModelProperty(value = "修理方法")
    @TableField("method")
    private String method;

    @ApiModelProperty(value = "发生频度")
    @TableField("more_frequent")
    private String moreFrequent;

    @ApiModelProperty(value = "工具设备")
    @TableField("equipment")
    private String equipment;

    @ApiModelProperty(value = "耗材")
    @TableField("consumables")
    private String consumables;

    @ApiModelProperty(value = "修理难度")
    @TableField("difficulty")
    private String difficulty;

    @ApiModelProperty(value = "修理费用估计")
    @TableField("cost")
    private String cost;

    @ApiModelProperty(value = "修理级别")
    @TableField("level")
    private String level;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private String updateTime;

    public String getRepairId() {
        return repairId;
    }

    public void setRepairId(String repairId) {
        this.repairId = repairId;
    }
    public String getStructureId() {
        return structureId;
    }

    public void setStructureId(String structureId) {
        this.structureId = structureId;
    }
    public String getSubjects() {
        return subjects;
    }

    public void setSubjects(String subjects) {
        this.subjects = subjects;
    }
    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
    public String getMoreFrequent() {
        return moreFrequent;
    }

    public void setMoreFrequent(String moreFrequent) {
        this.moreFrequent = moreFrequent;
    }
    public String getEquipment() {
        return equipment;
    }

    public void setEquipment(String equipment) {
        this.equipment = equipment;
    }
    public String getConsumables() {
        return consumables;
    }

    public void setConsumables(String consumables) {
        this.consumables = consumables;
    }
    public String getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(String difficulty) {
        this.difficulty = difficulty;
    }
    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }
    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.repairId;
    }

    @Override
    public String toString() {
        return "Repair{" +
            "repairId=" + repairId +
            ", structureId=" + structureId +
            ", subjects=" + subjects +
            ", method=" + method +
            ", moreFrequent=" + moreFrequent +
            ", equipment=" + equipment +
            ", consumables=" + consumables +
            ", difficulty=" + difficulty +
            ", cost=" + cost +
            ", level=" + level +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
